//
//  MyMovieViewController.m
//  UI_豆瓣
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "MyMovieViewController.h"

@interface MyMovieViewController ()<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic, retain)UITableView *myTableView;

@end

@implementation MyMovieViewController

- (void)dealloc
{
    [_myTableView release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor yellowColor];
    
    self.myTableView = [[UITableView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    self.myTableView.delegate = self;
    self.myTableView.dataSource = self;
    [self.view addSubview:self.myTableView];
    [_myTableView release];
    
    
    [self.myTableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"myMovie"];
    
}

#pragma mark -- 设置行
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

#pragma mark -- 设置cell
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
   static  NSString *cellmyMovie = @"myMovie";
    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:cellmyMovie];
    cell.textLabel.text = @"aaaa";
    return cell;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
